package com.ruoyi.house_sale.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.house_sale.mapper.HouseEventMapper;
import com.ruoyi.house_sale.domain.HouseEvent;
import com.ruoyi.house_sale.service.IHouseEventService;

import javax.annotation.Resource;

/**
 * 房产事件Service业务层处理
 *
 * @author ruoyi
 * @date 2022-04-22
 */
@Service
public class HouseEventServiceImpl implements IHouseEventService
{
    @Resource
    private HouseEventMapper houseEventMapper;

    /**
     * 查询房产事件
     *
     * @param houseeventid 房产事件主键
     * @return 房产事件
     */
    @Override
    public HouseEvent selectHouseEventByHouseeventid(Long houseeventid)
    {
        return houseEventMapper.selectHouseEventByHouseeventid(houseeventid);
    }

    /**
     * 查询房产事件列表
     *
     * @param houseEvent 房产事件
     * @return 房产事件
     */
    @Override
    public List<HouseEvent> selectHouseEventList(HouseEvent houseEvent)
    {
        return houseEventMapper.selectHouseEventList(houseEvent);
    }

    /**
     * 新增房产事件
     *
     * @param houseEvent 房产事件
     * @return 结果
     */
    @Override
    public int insertHouseEvent(HouseEvent houseEvent)
    {
        return houseEventMapper.insertHouseEvent(houseEvent);
    }

    /**
     * 修改房产事件
     *
     * @param houseEvent 房产事件
     * @return 结果
     */
    @Override
    public int updateHouseEvent(HouseEvent houseEvent)
    {
        return houseEventMapper.updateHouseEvent(houseEvent);
    }

    /**
     * 批量删除房产事件
     *
     * @param houseeventids 需要删除的房产事件主键
     * @return 结果
     */
    @Override
    public int deleteHouseEventByHouseeventids(Long[] houseeventids)
    {
        return houseEventMapper.deleteHouseEventByHouseeventids(houseeventids);
    }

    /**
     * 删除房产事件信息
     *
     * @param houseeventid 房产事件主键
     * @return 结果
     */
    @Override
    public int deleteHouseEventByHouseeventid(Long houseeventid)
    {
        return houseEventMapper.deleteHouseEventByHouseeventid(houseeventid);
    }
}
